import type { IResponseBase } from '../type'

export interface IRoleData {
  id: number
  createTime: string
  updateTime: string
  roleName: string
  remark: any
}

export interface IRoleListResponse extends IResponseBase {
  data: {
    records: IRoleData[]
    total: number
    size: number
    [key: string]: any
  }
}
export interface IRole {
  id: string
  createTime: string
  updateTime: string
  pid: number
  name: string
  code: string
  toCode: string
  type: number
  status: any
  level: number
  children?: IRole[]
  select: boolean
}

export interface IAllMenuTreeResponse extends IResponseBase {
  data: IRole[]
}
